﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>hCalendar 4 - extracting rrule repeated event test</title>
  
  <!-- This will be replace with one CSS file and one JavaScipt file -->
  <link rel="stylesheet" href="../css/uftestsuite.css" type="text/css" />
  <link rel="stylesheet" href="../../testrunner/css/testrunner.css" type="text/css" />
  
  <script type="text/javascript" src="../../testrunner/javascript/prototype-1.6.0.2.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/beautify.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/sumo/microformat.js"></script>
  <script type="application/javascript;version=1.7" src="http://svn.mozilla.org/labs/operator/chrome/content/Microformats/Microformats.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/shiv/microformats-shiv.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/shiv/microformats-definition.js"></script>  
  <script type="text/javascript" src="../../testrunner/javascript/testrunner.js"></script>
   
</head>
<body>
    
    
    <div class="test-fixture">
    
    <p>
    <a href="../"><img border="0" id="testsuite-image" alt="Microformats test suite" src="../images/testsuite.gif" /></a><br />
    </p>
    
    <h1 class="summary">hCalendar 4 - extracting rrule repeated event test</h1>
    <p class="description">This page test that parsers can extract rrule from 
	different structures. </p>
    <p>From: <a href="default.htm"><span class="format">hCalendar</span> test suite 1.0</a></p>
    <p class="author vcard">
        Author: <a class="url fn" href="http://www.glennjones.net/">Glenn Jones</a> 
    </p>
    
        <input id="unittestbutton" type="button" onclick="microformatsTestRunner.displayTestOptionForm()" value="Unit Test Runner"/>

      
    <p>Tests:</p>
    <table id="assetTable" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>Test</th>
            <th>Result</th>
            <th>Comment</th>
        </tr>
    </thead>
    	<tbody>
    	
	        <tr class="assert">
	            <td class="test">vevent[0].rrule.freq</td>
	            <td class="result">IsEqualTo("yearly")</td>
	            <td class="comment">The rrule.freq value</td>
	        </tr>
	        
	        <tr class="assert">
	            <td class="test">vevent[1].rrule.freq</td>
	            <td class="result">IsEqualTo("weekly")</td>
	            <td class="comment">The rrule.freq value</td>
	        </tr>
	        
	        <tr class="assert">
	            <td class="test">vevent[1].rrule.byday</td>
	            <td class="result">IsEqualTo("mo,tu,we,th,fr")</td>
	            <td class="comment">The rrule.byday value</td>
	        </tr>
	        
	        <tr class="assert">
	            <td class="test">vevent[1].rrule.byhour</td>
	            <td class="result">IsEqualTo("17")</td>
	            <td class="comment">The rrule.byhour value</td>
	        </tr>

	        <tr class="assert">
	            <td class="test">vevent[1].rrule.byminute</td>
	            <td class="result">IsEqualTo("30")</td>
	            <td class="comment">The rrule.byminute value</td>
	        </tr>
	        
	        <tr class="assert">
	            <td class="test">vevent[1].tzid</td>
	            <td class="result">IsEqualTo("US-Eastern")</td>
	            <td class="comment">The tzid value</td>
	        </tr>


         </tbody>
    </table> 
    
    
    <p>History:</p>
    
    <ul>
	    <li class="history vevent">
	        <span class="summary">Created</span>: <abbr class="dtstart" title="2008-06-06">6 June 2008</abbr> 
	        <span class="description">by Glenn Jones</span>
	    </li>
    	 <li class="history vevent">
	        <span class="summary">Updated</span>: Corrected tzid value and added more rrule asserts<abbr class="dtstart" title="2008-06-08">19 July 2010</abbr> 
	        <span class="description">by Glenn Jones</span>
	    </li>

    </ul>
    
    
    
    </div>
  
    <div id="uf">
    
    	<!-- This may not be the best semantic use of HTML element -->
    	
    	<!-- 0  Example from http://microformats.org/wiki/hcalendar-examples#Example_3 -->
		<div class="vevent">
		  <div class="summary">Anniversary</div>
		  <div>Posted on: <abbr class="dtstamp" title="2001-09-30T13:00Z">September 30, 2001</abbr></div>
		  <div>Date: <abbr class="dtstart" title="2000-09-30T13:00Z">September 30, 2000</abbr></div>
		  <div>This event is <strong class="class">confidential</strong>.</div>
		  <div>Filed under:</div>
		  <ul>
		     <li class="category">Anniversary</li>
		     <li class="category">Personal</li>
		  </ul>
		   <div class="rrule">Repeat <span class="freq">yearly</span>.</div>
		   <div><a class="url uid" href="http//:1.example.com">1.example.com</a></div>
		</div>
		
		
		 <!-- 1 Example from http://www.xfront.com/microformats/hCalendar_part2.html -->
		<p class="vevent">
			<a class="url uid summary" href="http//:1.example.com">Pardon the Interruption</a>
			is a <span class="category">TV</span> <span class="category">sports</span> show.
			<abbr class="dtstart" title="2001-10-22">It airs</abbr>
			<abbr class="rrule" title="freq=weekly;byday=mo,tu,we,th,fr;byhour=17;byminute=30">
			Monday to Friday at 5:30pm</abbr>
			<abbr class="tzid" title="US-Eastern">ET</abbr> on ESPN.
			The hosts of the show are longtime friends
				<span class="hcard">
					<span class="fn n">
					<span class="given-name">Tony</span>
					<span class="family-name">Kornheiser</span>
				</span>
			</span>
			Michael Wilbon
			<span class="description">They discuss - and frequently argue over - the top stories of the
			day in "sports... and other stuff".</span>
		</p>
				
    
    </div>
    
    <p>
        <a rel="license" href="../license.txt">Some rights reserved</a>
    </p>
      
</body>

</html>